package com.bysc.pojo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;

import java.time.LocalDateTime;

@ApiModel(value = "Task实体")
public class Task {
    @ApiModelProperty(value = "主键", required = true)
    private Integer id; // 主键

    @ApiModelProperty(value = "任务内容")
    private String taskContent; // 任务内容

    @ApiModelProperty(value = "任务创建时间")
    private LocalDateTime createdAt; // 任务创建时间

    public Task() {}

    public Task(Integer id, String taskContent, LocalDateTime createdAt) {
        this.id = id;
        this.taskContent = taskContent;
        this.createdAt = createdAt;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTaskContent() {
        return taskContent;
    }

    public void setTaskContent(String taskContent) {
        this.taskContent = taskContent;
    }

    public LocalDateTime getCreated_at() {
        return createdAt;
    }

    public void setCreated_at(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    @Override
    public String toString() {
        return "Task{" +
                "id=" + id +
                ", taskContent='" + taskContent + '\'' +
                ", createdAt=" + createdAt +
                '}';
    }


}
